﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using AutoMapper;
using Microhard.WST.BI.Buz.Models;
using Microhard.WST.BI.Buz.DataAccess;

namespace Microhard.WST.BI.Buz.DTO
{
    public class DTOMapBuilder : IDTOBuilder
    {
        public void MappingBuild()
        {
            #region ContractModel
            Mapper.CreateMap<ContractModel, PM_Contracts>();
            Mapper.CreateMap<PM_Contracts, ContractModel>();
            #endregion

            #region ContractReg
            Mapper.CreateMap<ContractRegModel, PM_Customer_ContractReg>();
            Mapper.CreateMap<PM_Customer_ContractReg, ContractRegModel>();
            #endregion

            #region OrderDetail
            Mapper.CreateMap<OrderDetailModel, PM_OrderSheetDetail>();
            Mapper.CreateMap<PM_OrderSheetDetail, OrderDetailModel>();
            #endregion


            #region Order
            Mapper.CreateMap<OrderModel, PM_Order>();
            Mapper.CreateMap<PM_Order, OrderModel>();
            #endregion

            #region OrderPrdDetail
            Mapper.CreateMap<OrderPrdDetailModel, PM_OrderPrdDetail>();
            Mapper.CreateMap<PM_OrderPrdDetail, OrderPrdDetailModel>();
            #endregion

            #region Customer
            Mapper.CreateMap<CustomerModel, PM_Customers>();
            Mapper.CreateMap<PM_Customers, CustomerModel>();
            #endregion
        }
    }
}
